<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>科税通</title>

    <!--&lt;!&ndash;[if lt IE 9]>-->
    <!--<meta http-equiv="refresh" content="0;ie.html" />-->
    <!--<script src='ADMIN_PUBLIC/js/jquery.js'  type="text/javascript"></script>-->
    <!--<script src="ADMIN_PUBLIC/js/flexie.js" type="text/javascript"></script>-->
    <!--<![endif]&ndash;&gt;-->
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="ADMIN_PUBLIC/css/lu_common.css">
    <div class="browser_ie">
        <p>
            您的浏览器版本过低！为保证最佳浏览体验，您可以点击下载<a class="browser-download" href="http://rj.baidu.com/soft/detail/14744.html">谷歌浏览器</a>，或升级当前浏览器至最新版本
        </p>
    </div>
    <![endif]-->

    <link rel="shortcut icon" href="ADMIN_PUBLIC/img/logo_small.png">
    <link href="ADMIN_PUBLIC/css/bootstrap.min.css" rel="stylesheet">
    <link href="ADMIN_PUBLIC/css/font-awesome.min.css" rel="stylesheet">
    <link href="ADMIN_PUBLIC/css/animate.min.css" rel="stylesheet">
    <link href="ADMIN_PUBLIC/css/style.min.css" rel="stylesheet">

    <link rel="stylesheet" href="ADMIN_PUBLIC/fonts_style/iconfont.css">

    <style>
        .nav_slider{
            height:2px;
            background-color: #117bbc;
            margin:15px 0;
            /*border-bottom:1px solid #ddd;*/
        }
        .nav-header{
            background: none;
        }
        .navbar-default{
            background-color: #1696e4;
            /*filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0);*/
            /*-ms-filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0);!*IE8*!*/
            background:#1696e4; /* 一些不支持背景渐变的浏览器 */
            background:-moz-linear-gradient(top, #16a3e4, #1577e4);
            background:-webkit-gradient(linear, 0 0, 0 bottom, from(#16a3e4), to(#1577e4));
            background:-o-linear-gradient(top, #16a3e4, #1577e4);
        }
        .nav>li>a{
            color: #fff;
            font-weight: normal;
        }
        .dropdown{
            text-align: center;
        }
        .nav>li>a:hover{
            background:#1675b2 !important;
            color:#fff
        }
        .navbar-default .nav>li>a:focus, .navbar-default .nav>li>a:hover{
            background-color: #1675b2;
        }
        .nav>li.active{
            /*background-color: #1696e4;*/
            background-color: transparent;
            border: none;
        }
        .nav-header .text-muted{
            color: #ccc;
        }
        .nav>li>ul>li{
            margin:5px 0;
        }
        .page-tabs a.active{
            background-color: #1696e4;
            color: #fff;
        }
        .page-tabs a.active:hover{
            background:#1675b2 !important;
        }
        .btn-primary{
            background-color:#1675b2 ;
            border:none;
        }
        .label-primary{
            background-color: #d1dade;
        }
        .nav>li.dropdown>a:hover{
            background-color: #F3F3F4 !important;
            color: #999c9e;
        }
        .nav>li.dropdown>a:focus{
            background-color: #fff !important;
        }
        .btn-primary.active, .btn-primary:active, .btn-primary:focus{
            background-color: #1675b2;
            border:none;
        }
        body.mini-navbar .nav-header{
            background-color: transparent;
        }
        .logo-element{
            background-color: transparent;
        }
        .logo-element>.navbar-header{
            width:100%;
            clear: both;
        }
        
        .setting>i{
            color: #999c9e;
        }
        #setting{
            color: transparent!important;
            height: 30px!important;
            width: 30px!important;
            padding: 0!important;
            text-align: center!important;
            display: inline-block!important;
        }
        #setting:hover{
            background: transparent!important;
        }
        /**/
        #renzheng_list{
            list-style:none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin:0;
            padding:0;
        }
        #renzheng_list li{
            line-height: 0;
        }
        #renzheng_list li a{
            display: inline-block;
            width:54px;
            height:22px;
            color:transparent;
        }
        #renzheng_list a.renzheng_list_logo_rz{
            background-image: url("ADMIN_PUBLIC/img/企业认证（灰）@2x.png");
        }
        #renzheng_list a.renzheng_list_logo_rz.active{
            background-image: url("ADMIN_PUBLIC/img/企业认证@2x.png");
        }
        #renzheng_list a.renzheng_list_logo_big{
            background-image: url("ADMIN_PUBLIC/img/高企（灰）@2x.png");
        }
        #renzheng_list a.renzheng_list_logo_big.active{
            background-image: url("ADMIN_PUBLIC/img/高企@2x.png");
        }
        #renzheng_list a.renzheng_list_logo_small{
             background-image: url("ADMIN_PUBLIC/img/科技型中小企业（灰）@2x.png");
        }
        #renzheng_list a.renzheng_list_logo_small.active{
            background-image: url("ADMIN_PUBLIC/img/科技型中小企业@2x.png");
        }

        #img_box{
            position: relative;
            border-radius: 50%;
            overflow: hidden;
            width: 64px;
            height: 64px;
            margin: 0 auto;
        }
        #img_box>a{
            display: inline-block;
            width:64px;
            height:64px;
            border-radius: 50%;
            background: rgba(0,0,0,.6);
            text-align: center;
            line-height: 64px;
            position: absolute;
            top:64px;
            left:0;
            color: #fff;
            font-size:12px;
            transition: top ease .5s;
        }
        .img-circle:hover{
            cursor: pointer;
        }
        #img_box:hover a{
            cursor: pointer;
            top:0;
        }
        #logo_hhh{
            display: inline-block;
            /*width: 120px;
            height: 40px;
            background:url('ADMIN_PUBLIC/img/logo_hhh.png');*/
            width: 180px;
            height: 40px;
            background:url('ADMIN_PUBLIC/img/logo_hhh_silujingchuang.png');
            margin: 10px 0 6px 20px;
        }
    </style>

</head>

<body class="fixed-sidebar full-height-layout" style="overflow:hidden">
    <div id="wrapper">
         <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <!-- <div class="dropdown profile-element" id="dropdown">
                            <span><img alt="image" class="img-circle" src="ADMIN_PUBLIC/img/profile_small.jpg" width=64 height=64 /></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold">{$name}</strong></span>
                                <span class="text-muted text-xs block">{$role_name}</span>
                                </span>
                            </a>
                        </div> -->
                        <div class="dropdown profile-element" id="dropdown">
                            <div id="img_box">
                                <img alt="image" class="img-circle" src="<empty name = 'logo'>ADMIN_PUBLIC/img/profile_small.jpg</empty>{$logo}"/>
                                <a class="J_menuItem" href="/Admin/ComInfo/logo">更换头像</a>
                            </div>
                            <div class="clear">
                                <span class="block m-t-xs"><strong class="font-bold" style="color:#fff;padding:10px 0" id='user_name'>{$name}</strong></span>
                                <span class="text-muted text-xs block" style="padding:7px 0">{$role_name}</span>
                                <ul id="renzheng_list">
                                    <li><a href="" class="J_menuItem renzheng_list_logo_rz"></a></li>
                                    <li><a href="" class="J_menuItem renzheng_list_logo_big">公司管理</a></li>
                                    <li><a href="" class="J_menuItem renzheng_list_logo_small">公司管理</a></li>
                                </ul>
                            </div>
                        </div>

                    </li>
                    <!--<li>-->
                        <!--<a href="#">-->
                            <!--<i class="fa fa-home"></i>-->
                            <!--<span class="nav-label">首页</span>-->
                        <!--</a>-->
                    <!--</li>-->
                    <li>
                        <a class="J_menuItem" href="{:U('Index/main')}"><i class="iconfont icon-daohangshouye"></i> <span class="nav-label">首页</span></a>
                    </li>
                <eq name = 'com_show' value = '1'>
                    <li>
                        <a href="#">
                            <i class="iconfont icon-qiye"></i>
                            <span class="nav-label">企业管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                    <volist name = 'com_menus' id = 'v'>
                            <li>
                                <a class="J_menuItem" href="/{$v.url}">{$v.rule_name}</a>
                            </li>
                    </volist>
                        </ul>
                    </li>            
                </eq>

                    <div class="nav_slider"></div>
                <volist name = 'other_menus' id = 'v'>     
                    <li>
                        <a class="J_menuItem" href="/{$v.url}"><i class="<eq name = 'v.rule_name' value = '项目管理'>iconfont icon-icon-project</eq><eq name = 'v.rule_name' value = '过程管理'>iconfont icon-plus-monitored</eq><eq name = 'v.rule_name' value = '费用管理'>iconfont icon-feiyong</eq>"></i> <span class="nav-label">{$v.rule_name}</span></a>
                    </li>
                </volist>

                <eq name = 'vouch_show' value = '1'>
                    <li>
                        <a href="#">
                            <i class="iconfont icon-pingzhengguanli"></i>
                            <span class="nav-label">凭证管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                    <volist name = 'vouch_menus' id = 'v'> 
                            <li>
                                <a class="J_menuItem" href="/{$v.url}"><span class="nav-label">{$v.rule_name}</span></a>
                            </li>
                    </volist>
                        </ul>
                    </li>
                </eq>
                <eq name = 'cg_show' value = '1'>
                    <li>
                        <a href="#">
                            <i class="iconfont icon-jiaoxuechengguo"></i>
                            <span class="nav-label">成果管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                    <volist name = 'cg_menus' id = 'v'> 
                            <li>
                                <a class="J_menuItem" href="/{$v.url}"><span class="nav-label">{$v.rule_name}</span></a>
                            </li>
                    </volist>
                        </ul>
                    </li>
                    <div class="nav_slider"></div>
                </eq>

                    
                <eq name = 'sear_show' value = '1'>
                    <li>
                        <a href="#">
                            <i class="iconfont icon-fangdajing1"></i>
                            <span class="nav-label">查询统计</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level"> 
                            <li>
                               <a class="J_menuItem" href="{:U('Index/export1')}"><span class="nav-label">研发支出辅助账</span></a>
                            </li>                  
                            <li>
                               <a class="J_menuItem" href="{:U('Index/export5')}"><span class="nav-label">加计扣除优惠明细表</span></a>
                            </li>
                            <li>
                               <a class="J_menuItem" href="{:U('Index/export2')}"><span class="nav-label">研发支出辅助账汇总表</span></a>
                            </li> 
                            <li>
                               <a class="J_menuItem" href="{:U('Index/export3')}"><span class="nav-label">研发费用情况归集表</span></a>
                            </li>   
                            <li>
                               <a class="J_menuItem" href="{:U('Index/export4')}"><span class="nav-label">研发项目汇总表</span></a>
                            </li>         
                        </ul>
                    </li>
                </eq>

                <eq name = 'sear_show' value = '1'>
                    <li>
                        <a class="J_menuItem" href="/Admin/ComInfo/sale">
                            <i class="iconfont icon-laba"></i>
                            <span class="nav-label">企业推广</span>
                            <!-- <span class="fa arrow"></span> -->
                        </a>
                    </li>
                </eq>

                <eq name = 'auth_show' value = '1'>
                    <li>
                        <a href="#">
                            <i class="iconfont icon-guanliyuan"></i>
                            <span class="nav-label">管理员管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                    <volist name = 'auth_menus' id = 'v'>
                           <li>
                               <a class="J_menuItem" href="/{$v.url}"><span class="nav-label">{$v.rule_name}</span></a>
                           </li>
                    </volist>
                        </ul>
                    </li>
                </eq>
                         
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <!-- <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " style="margin-right: 20px" href="#"> -->
                            <!--<i class="fa fa-bars"></i>-->
                            <!-- LOGO -->
                        <!-- </a> -->
                        <!-- <p class="" style="line-height: 60px;margin: 0;font-size: 18px;color: #333;">新疆企业研发费用管理服务平台</p> -->
                        <!--<form role="search" class="navbar-form-custom" method="post" action="search_results.html">-->
                            <!--<div class="form-group">-->
                                <!--<input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">-->
                            <!--</div>-->
                        <!--</form>-->
                        <i id='logo_hhh' class="navbar-minimalize"></i>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown">
                            <!--<a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">-->
                                <!--<i class="fa fa-bell"></i> <span class="label label-primary">8</span>-->
                            <!--</a>-->
                            <!--<ul class="dropdown-menu dropdown-alerts">-->
                                <!--<li>-->
                                    <!--<a href="mailbox.html">-->
                                        <!--<div>-->
                                            <!--<i class="fa fa-envelope fa-fw"></i> 您有16条未读消息-->
                                            <!--<span class="pull-right text-muted small">4分钟前</span>-->
                                        <!--</div>-->
                                    <!--</a>-->
                                <!--</li>-->
                                <!--<li class="divider"></li>-->
                                <!--<li>-->
                                    <!--<a href="profile.html">-->
                                        <!--<div>-->
                                            <!--<i class="fa fa-qq fa-fw"></i> 3条新回复-->
                                            <!--<span class="pull-right text-muted small">12分钟钱</span>-->
                                        <!--</div>-->
                                    <!--</a>-->
                                <!--</li>-->
                                <!--<li class="divider"></li>-->
                                <!--<li>-->
                                    <!--<div class="text-center link-block">-->
                                        <!--<a class="J_menuItem" href="notifications.html">-->
                                            <!--<strong>查看所有 </strong>-->
                                            <!--<i class="fa fa-angle-right"></i>-->
                                        <!--</a>-->
                                    <!--</div>-->
                                <!--</li>-->
                            <!--</ul>-->
                        </li>
                        <li class="">
                            <a class="J_menuItem setting" href="{:U('Index/setPage')}" id="setting">
                                设置
                                <i class="iconfont icon-shezhi1"></i>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="{:U('Index/main')}">首页</a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight" style='right:60px;'><i class="fa fa-forward"></i>
                </button>
                <!-- <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>

                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div> -->
                <a href="#" id="logout" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i>退出</a>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{:U('Index/main')}" frameborder="0" data-id="{:U('Index/main')}" seamless></iframe>
            </div>
        </div>
        <!--右侧部分结束-->
    </div>
    <script src="ADMIN_PUBLIC/js/jquery.min.js"></script>
    <script src="ADMIN_PUBLIC/js/bootstrap.min.js"></script>
    <script src="ADMIN_PUBLIC/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="ADMIN_PUBLIC/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="ADMIN_PUBLIC/js/plugins/layer/layer.min.js"></script>
    <script src="ADMIN_PUBLIC/js/hplus.min.js"></script>
    <script type="text/javascript" src="ADMIN_PUBLIC/js/contabs.min.js"></script>
    <script src="ADMIN_PUBLIC/js/plugins/pace/pace.min.js"></script>
    <script>
        let interval
        // offline网络连接事件
        window.addEventListener("offline",function() {
            interval = setInterval(function(){
                console.log("网络连接已断开");
                window.location.reload();
            },0)
        });
        window.addEventListener("online",function() {
            console.log("网络连接已建立");
            clearTimeout(interval)
        });

    $.ajax({
        url:'/Admin/ComInfo/getStatus',
        type:'get',
        success:function(data){
            if(data.code==1){
                if(data.status==3){
                    $('#renzheng_list').find('.renzheng_list_logo_rz').addClass('active')
                    $('#renzheng_list').find('.renzheng_list_logo_rz').css({'cursor':'default'})
                }else{
                    $('#renzheng_list').find('.renzheng_list_logo_rz').removeClass('active')
                    $('#renzheng_list').find('.renzheng_list_logo_rz').css({'cursor':'pointer'})
                }
                if(data.hcom_status==3){
                    $('#renzheng_list').find('.renzheng_list_logo_big').addClass('active')
                    $('#renzheng_list').find('.renzheng_list_logo_big').attr('href','')
                    $('#renzheng_list').find('.renzheng_list_logo_big').css({'cursor':'default'})
                }else{
                    $('#renzheng_list').find('.renzheng_list_logo_big').removeClass('active')
                    $('#renzheng_list').find('.renzheng_list_logo_big').attr('href','/admin/ComInfo/index')
                    $('#renzheng_list').find('.renzheng_list_logo_big').css({'cursor':'pointer'})
                }
                if(data.lcom_status==3){
                    $('#renzheng_list').find('.renzheng_list_logo_small').addClass('active')
                    $('#renzheng_list').find('.renzheng_list_logo_small').attr('href','')
                    $('#renzheng_list').find('.renzheng_list_logo_small').css({'cursor':'default'})
                }else{
                    $('#renzheng_list').find('.renzheng_list_logo_small').removeClass('active')
                    $('#renzheng_list').find('.renzheng_list_logo_small').attr('href','/admin/ComInfo/index')
                    $('#renzheng_list').find('.renzheng_list_logo_small').css({'cursor':'pointer'})
                }
            }
        }
    })
    $('#logout').click(function(){
    	$.ajax({
    	    url:'/Admin/ComInfo/logout',
    	    type:'get',
    	    success:function(data){
    	        if(data.code==1){
    	        	alert('退出成功！');
    	        	window.location.href  = '/Admin/ComInfo/doLogin'
    	        }
    	    }
    	})
    })
    $('#user_name').each(function(){
        let max = 12
        if($(this).text().length>max){
            $(this).text($(this).text().substring(0,max)+'...')
        }
    })
    </script>
</body>

</html>
